AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )   
include("shared.lua")

function ENT:Initialize( )
 
	self:SetModel( "models/Eli.mdl" )
	self:SetHullType( HULL_HUMAN )
	self:SetHullSizeNormal( )
	self:SetNPCState( NPC_STATE_SCRIPT )
	self:SetSolid( SOLID_BBOX )
	self:CapabilitiesAdd( CAP_ANIMATEDFACE | CAP_TURN_HEAD )
	self:SetUseType( SIMPLE_USE )
	self:DropToFloor()
 
	self:SetMaxYawSpeed( 90 )
 
end

local NextTime = 0

function ENT:AcceptInput( name, activator, caller, data )

    if (CurTime() >= NextTime) then
	        NextTime = CurTime() +  1

    if ( name == "Use" && ValidEntity( activator ) && activator:IsPlayer( ) ) then
		umsg.Start("GunDealerUsed", activator)
		umsg.End()
		end
	end
end